﻿using MongoData;
using MongoData.Model.MongoDb;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Web;

namespace WebTest
{
    /// <summary>
    /// TestHandler 的摘要说明
    /// </summary>
    public class g : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var factory = new MongoData.MogonDbFactory();

            var userCollection = factory.Database.GetCollection<User>("User");
            var aaa=userCollection.FindAll().ToList();
            context.Response.Write(aaa);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}